package com.canyou.redmine.network;

import com.canyou.redmine.util.CanYouKit;

/**
 * Created by Administrator on 2016/3/25.
 */
public final class CanYouUrl {
    //api地址
    public final static String API_DOMAIN = "http://192.168.10.14";
    //登陆
    public final static String login = "/redmine/login";
    //当前登录用户
    public final static String user_current = "/redmine/users/current.json";

    //项目列表
    public final static String projects = "/redmine/projects.json";

    //项目情况
    public final static String project = "/redmine/projects/project_id.json?include=trackers,time_entry_activities";

    //项目成员
    public final static String project_memberships = "/redmine/projects/project_id/memberships.json";
    //项目耗时
    public final static String project_time_entries = "/redmine/time_entries.json";
    //项目问题
    public final static String project_issues = "/redmine/projects/project_id/issues.json";

    //任务列表
    public final static String issues = "/redmine/issues.json";

    //跟踪
    public final static String trackers = "/redmine/trackers.json";
    //状态
    public final static String issue_statuses = "/redmine/issue_statuses.json";
    //优先级
    public final static String issue_priorities = "/redmine/enumerations/issue_priorities.json";

    //任务详情
    public final static String issue = "/redmine/issues/issue_id.json";

    //新建任务单
    public final static String issue_new = "/redmine/issues.json?key=" + CanYouKit.APIKey();

    //更新任务单
    public final static String issue_update = "/redmine/issues/issue_id.json?key=" + CanYouKit.APIKey();
}